<?php

$appArray   =   array(
					'ttpod'		=>  'http://stat.ios.ttpod.com/go/in/f599?http://itunes.apple.com/cn/app//id483336353?mt=8',
					'hongruan'		=>  'https://itunes.apple.com/cn/app/mei-zhuang-xiu-mei-rong-hua/id551925870',
					'chuanyizhushou'		=>  'http://t.cn/zYjxzla',
					'91'		=>  'http://bbxdata.sj.91.com/stat.ashx?act=110&ituneschl=271',
					'wochacha'		=>  'http://wap.wochacha.com/www/t?so=0049',
					'jsdcys'		=>  'http://t.appcpa.net/xlg8Mp',
					'shengsheng'		=>  'http://shengsheng.fm/app/download/ios?from=ffrj',
					'meiyan'		=>  'http://url.meitu.com/?id=1002',
					'moji'		=>  'http://mojichina.com/mjchann/channel.php?url=http://itunes.apple.com/cn/app/mo-ji-tian-qi-guan-fang/id434209233?mt=8&channelid=9163&userid=',
                );

$default    =   'https://itunes.apple.com/cn/app/id557524442?mt=8';


if (empty($_GET['to']) ||  empty($appArray[$_GET['to']]))
{
    $ios    =   $default;
}
else
{
    $ios    =   $appArray[$_GET['to']];
}

header('Location: '. $ios);

